import os
path='pictures/'
files=os.listdir(path)
op=open('pictures/list.config','w')
for f in files:
    op.write(f+'\n')
op.close()
os.system('copy_list.bat')